/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JCustomerPaymentsView.java
 *
 * Created on 2010-6-20, 10:10:46
 */

package cn.ekuma.epos.analysis.businesspartner;

import org.jdesktop.swingx.JXTable;
import org.jdesktop.swingx.JXTreeTable;

/**
 *
 * @author Administrator
 */
public class JCustomerPaymentsView extends javax.swing.JPanel {

    /** Creates new form JCustomerPaymentsView */
    public JCustomerPaymentsView(AnalysisModelManager manager) {
        initComponents();
        jXTable1.setModel(manager.getCustomerPaymentsTableModel());
        jXTable1.setAutoCreateRowSorter(true);
        jXTable1.setAutoResizeMode(JXTable.AUTO_RESIZE_OFF);
        jXTable1.setColumnControlVisible(true);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jXTable1 = new org.jdesktop.swingx.JXTable();

        setLayout(new java.awt.BorderLayout());

        jXTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jXTable1);

        add(jScrollPane1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private org.jdesktop.swingx.JXTable jXTable1;
    // End of variables declaration//GEN-END:variables

}
